//记录音乐已经播放的时长
const initstate = 0
let arr = []
export default function (state = initstate, action) {
    const { type, payload } = action
    switch (type) {
        case 'TIMING':
            return arr.push(payload)
        case 'CLEAR_TIMING':
            return arr=[]
        default:
            return state
    }
}